Class PortBase<C>
Represents a base class for hardware ports.
Assembly: Meadow.Contracts.dll
View Source
public abstract class PortBase<C> : IPort<C>, IDisposable where C : class, IChannelInfo
Derived:
Meadow.Hardware.AnalogPortBase, Meadow.Hardware.DigitalPortBase
Implements:
Meadow.Hardware.IPort<C>, System.IDisposable
Properties
Channel
Gets the channel information associated with the port.
View Source
public C Channel { get; }
Pin
Gets or sets the pin associated with the port.
View Source
public IPin Pin { get; protected set; }
Fields
disposed
Indicates whether the port has been disposed.
View Source
protected bool disposed
Methods
Dispose(bool)
Releases the resources used by the port.
View Source
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | A boolean value indicating whether the port is being disposed. |
Dispose()
Releases the resources used by the port.
View Source
public void Dispose()
Implements
- Meadow.Hardware.IPort<C>
System.IDisposable